/*
 * @Author: pengtianrui 2276608413@qq.com
 * @Date: 2024-08-22 16:48:30
 * @LastEditors: pengtianrui 2276608413@qq.com
 * @LastEditTime: 2024-08-26 17:13:49
 * @FilePath: \SGFEM\DataStructure\FEM\Load\src\LoadCombination.cpp
 */

#include "DataStructure/Input/Load/LoadCombination.h"
#include "Utility/Logging/SGLogger.h"
bool SG::DataStructure::FEM::operator< (const LoadCombination& SGDataA, const LoadCombination& SGDataB)
{
    return SGDataA.m_sId < SGDataB.m_sId;
}

void SG::DataStructure::FEM::print (const SG::DataStructure::FEM::LoadCombination& load)
{
    SGTrace <<"Output load(bulkdata)\n" 
            << "  sid = " << load.m_sId
            << "  S = " << load.m_facotor;
    
    for (const auto& item : load.m_Items)
    {
        SGTrace << "    Component  " << item.m_subfactor << ",  " << item.m_subSet;
    }
}